package com.yiren.backstage.currency.bean;

import java.io.Serializable;

/**
 * @author lwb
 * @date :2021/12/21 16:14
 * @description: 用户信息
 */
public class UserInfoBean implements Serializable {

    private static final long serialVersionUID = 3816734501337310507L;
    /*** 用户ID */
    private Integer id;
    /*** 用户名称 */
    private String user_name;
    private String create_date;
    private String login_date;
    /*** 手机号 */
    private String phone;
    /***用户类型'1,学员，2,教练，3.公司用户', */
    private Integer user_type;
    private Integer deviceType = 0;
    private Integer userUseDevice = 0;
    /***所属合伙人Id */
    private Integer pUserId = 5243;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(String create_date) {
        this.create_date = create_date;
    }

    public String getLogin_date() {
        return login_date;
    }

    public void setLogin_date(String login_date) {
        this.login_date = login_date;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getUser_type() {
        return user_type;
    }

    public void setUser_type(Integer user_type) {
        this.user_type = user_type;
    }

    public Integer getpUserId() {
        return pUserId;
    }

    public void setpUserId(Integer pUserId) {
        this.pUserId = pUserId;
    }

    /**
     * 用户拥有设备状态
     *
     * @return 状态为：0  无设备 ； 1 只有OBD ；2 只有主控机  ；3 两者都有
     */
    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getUserUseDevice() {
        return userUseDevice;
    }

    public void setUserUseDevice(Integer userUseDevice) {
        this.userUseDevice = userUseDevice;
    }

    @Override
    public String toString() {
        return "{" +
                "\"id\":" + id +
                ", \"user_name\":" + "\"" + user_name + "\"" +
                ", \"create_date\":" + "\"" + create_date + "\"" +
                ", \"login_date\":" + "\"" + login_date + "\"" +
                ", \"phone\":" + "\"" + phone + "\"" +
                ", \"user_type\":" + user_type +
                ", \"deviceType\":" + deviceType +
                ", \"userUseDevice\":" + userUseDevice + "}";
    }

}
